<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>主页</title>
</head>

<body>

欢迎来到主页<br><br>
<button onclick="window.location.href='/customServlet'">点击测试SpringMVC与Servlet</button>
<br/><br/>

<form action="/path1" method="post">
    <p>用户名：<input type="text" name="username" value="root"></p>
    <p>密码：<input type="text" name="password" value="1"></p>
    <%--<p>邮箱：<input type="email" name="email"></p>--%>
    <input type="submit" value="点击测试自定义复杂Controller">
</form>

<button onclick="window.location.href='/path2'">点击测试自定义简单Controller</button>
<br/><br/>
<button onclick="window.location.href='/path3'">点击测试返回空白页面</button>
<br/><br/>
<form action="/req1" method="get">
    <p>用户名：<input type="text" name="username" value="admin"></p>
    <p>密码：<input type="text" name="password" value="1"></p>
    <p>年龄：<input type="text" name="age" value="18"></p>
    <p>年龄：<input type="text" name="age" value="18"></p>
    <p>喜欢的运动：
        <input type="checkbox" name="sports" value="篮球" checked>篮球
        <input type="checkbox" name="sports" value="足球" checked>足球
        <input type="checkbox" name="sports" value="羽毛球" checked>羽毛球
        <input type="checkbox" name="sports" value="乒乓球">乒乓球
    </p>
    <input type="submit" value="点击测试自定义请求参数">
</form>
<form action="/req2" method="post">
    <p>日期：<input type="date" name="date" value="2021-01-12"></p>
    <input type="submit" value="点击测试自定义请求参数(特殊)">
</form>
<button onclick="window.location.href='/resp1'">点击请求转发</button>
<br/><br/>
<button onclick="window.location.href='/resp2'">点击重定向</button>
<br/><br/>
<button onclick="window.location.href='/util'">点击测试工具类</button>
<br/><br/>

<video muted autoplay controls src="/video" width="500" height="500"></video>


</body>

</html>
